<?php
/**
 * licenses : MIT
 * creatTime: 2020/5/13
 * author : weblinuxgame
 * filename: ResultInterface.php
 */

namespace App\Core\Interfaces;

use ArrayAccess;
use Illuminate\Contracts\Support\Arrayable;

/**
 * Interface ResultInterface
 * @package App\Core\Interfaces
 */
interface ResultInterface extends Arrayable, ArrayAccess
{
    public function code(): int;

    public function data(): ?array;

    public function message(): string;

    public function value(string $key);

}
